package com.lagou.repository;

import com.lagou.bean.Resume;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface ResumeRepository extends MongoRepository<Resume,String> {
    /**
     *
     * @param name
     * @return
     */
    List<Resume>  findByNameEquals(String name);

    /**
     *
     * @param name
     * @param salary
     * @return
     */
    List<Resume>  findByNameAndSalary(String name, double salary);
}
